package com.quanyan.ic.parkingLot.http.controller;

import com.quanyan.ic.common.http.APIResponse;
import com.quanyan.ic.parkingLot.http.service.ParkingLotService;
import com.quanyan.ic.parkingLot.model.request.ReqParkingEntry;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by zhang on 17/8/22.
 */
@RestController
@RequestMapping(value = "/api/parking/control/",method = RequestMethod.POST)
public class ParkingLotController {
    private final static Logger logger = LoggerFactory.getLogger(ParkingLotController.class);

    @Autowired
    private ParkingLotService parkingLotService;

    /**
     * 停车场确认进入
     * @param reqParkingEntry
     * @return
     */
    @RequestMapping(value = "entry")
    public APIResponse entry(@RequestBody ReqParkingEntry reqParkingEntry){

        return parkingLotService.entry(reqParkingEntry);
    }

    @RequestMapping(value = "plateNumber")
    public APIResponse plateNumber(){
        return null;
    }
}
